<extend name="Public/base" />

<block name="body">
	<div class="main-title cf">
		<h2>学生选课</h2>
	</div>
	<!-- 表单 
	[0] => array(8) {
    ["cid"] => string(2) "43"
    ["cname"] => string(12) "挑战极限"
    ["teacher"] => string(9) "陈少瀚"
    ["category"] => string(15) "艺术手工类"
    ["number"] => string(2) "30"
    ["truenumber"] => string(2) "30"
    ["nj"] => string(4) "3456"
    ["room"] => string(5) "class"

-->
	<form id="form" action="{:U('saveStudentCurriculum')}" method="post" class="form-horizontal">
		<div class="form-item cf">
			<label class="item-label">学生信息<span class="check-tips"></span></label>
			<div class="controls">
			班级：	{$student.class}
			</div>
			<div class="controls">
			班内编号：	{$student.number}
			</div>
			<div class="controls">
			姓名：	{$student.name}
			</div>
			<div class="controls">
			性别：	{$student.sex|sex_format}
			</div>
		</div>

		<div class="form-item cf">
			<label class="item-label">请选择课程</label>
			<div class="controls">
				<select name="cid">
					<volist name="curriculum" id="vo">
						<option value="{$vo.cid}">{$vo.cid}-{$vo.cname}</option>
					</volist>
				</select>
			</div>
		</div>
		
		
		<div class="form-item">
			<input type="hidden" name="sid" value="{$student.sid}"/>
			<button type="submit" class="btn submit-btn " target-form="form-horizontal" onclick='submit'>确 定</button>
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	<div class="form-item cf">
			<label class="item-label">请选择相应年级的课程，尽量保持各课程之间人数的平衡。<span class="check-tips">
			（老师们可以查看各课程的预期人数）</span></label>
			<div class="controls">
			<h3>你所在的班级可选报的课程</h3>
			<table border=1 width="600px">
			<tr align="center">
			<th>课程ID</th><th>校本课程名称</th><th>任课教师</th><th>预计人数</th><th>已报人数</th>
			</tr>
			<volist name="curriculum" id="vo">
			<tr align="center">
			<td>{$vo.cid}</td><td>{$vo.cname}</td><td>{$vo.teacher}</td><td>{$vo.number}</td><td>{$vo.truenumber}</td>
			</tr>
			</volist>
			</table>
			
			
</div>
			
		</div>
</form>
</block>

<block name="script">
<script type="text/javascript" src="__STATIC__/uploadify/jquery.uploadify.min.js"></script>
<script type="text/javascript" charset="utf-8">
	Think.setValue('type',{$type|default=1});
    //导航高亮
    highlight_subnav('{:U('User/action')}');
</script>
</block>
